#include <iostream>
#include <string>
#include "./../inc/sequence_list.hpp"
using namespace std;

int main()
{   
    class SEQUENCE_LIST sequence_list_class;
    sequence_list * sequence_list_new = NULL;
    sequence_list_new = sequence_list_class.create_sequence_list();
    if(NULL != sequence_list_new)
    {
        std::cout << "create sequence list succeed ." << std::endl;
    }
    if(ADD_SEQUENCE_LIST_DATA_OK == sequence_list_class.add_sequence_list_data(sequence_list_new,HEAD_INSERT,19))
    {
        std::cout << "add data to sequence list succeed ." << std::endl;
    }
    if(ADD_SEQUENCE_LIST_DATA_OK == sequence_list_class.add_sequence_list_data(sequence_list_new,HEAD_INSERT,10))
    {
        std::cout << "add data to sequence list succeed ." << std::endl;
    }
    if(ADD_SEQUENCE_LIST_DATA_OK == sequence_list_class.add_sequence_list_data(sequence_list_new,TRAIL_INSERT,3))
    {
        std::cout << "add data to sequence list succeed ." << std::endl;
    }
    if(ADD_SEQUENCE_LIST_DATA_OK == sequence_list_class.add_sequence_list_data(sequence_list_new,HEAD_INSERT,4))
    {
        std::cout << "add data to sequence list succeed ." << std::endl;
    }
    if(SHOW_SEQUENCE_LIST_OK == sequence_list_class.show_sequence_list(sequence_list_new))
    {
        std::cout << "show sequence list succeed ." << std::endl;
    }

    sequence_list_class.delete_sequence_list(sequence_list_new,HEAD_INSERT);
    sequence_list_class.delete_sequence_list(sequence_list_new,TRAIL_INSERT);
    sequence_list_class.delete_sequence_list(sequence_list_new,2);
    if(SHOW_SEQUENCE_LIST_OK == sequence_list_class.show_sequence_list(sequence_list_new))
    {
        std::cout << "show sequence list succeed ." << std::endl;
    }
    sequence_list_class.delete_sequence_list(sequence_list_new,1);
    if(SHOW_SEQUENCE_LIST_OK == sequence_list_class.show_sequence_list(sequence_list_new))
    {
        std::cout << "show sequence list succeed ." << std::endl;
    }
    sequence_list_class.amend_sequence_list(sequence_list_new,HEAD_INSERT,666);
    if(SHOW_SEQUENCE_LIST_OK == sequence_list_class.show_sequence_list(sequence_list_new))
    {
        std::cout << "show sequence list succeed ." << std::endl;
    }
    while(1)
    {
        
    }
    return 0;
}
